<!--
 * @Author       : wfl
 * @LastEditors  : wfl
 * @description  :
 * @updateInfo   :
 * @Date         : 2022-11-10 11:47:43
 * @LastEditTime : 2023-01-05 15:29:17
-->
// 拖拽排序组件 // 返回 拖动节点、放入位置、放入节点信息
<script lang="ts" setup name="IkDragSort">
import type { PropType } from 'vue'

defineProps({
  data: {
    type: Array as PropType<
    Array<{
      lable: string
      value: string
      [key: string]: any
    }>
    >
  }
})
</script>

<template>
  <el-tree
    :data="data"
    draggable
    default-expand-all
    node-key="id"
  />
  <!-- <el-tree
    :allow-drop="allowDrop"
    :allow-drag="allowDrag"
    :data="data"
    draggable
    default-expand-all
    node-key="id"
    @node-drag-start="handleDragStart"
    @node-drag-enter="handleDragEnter"
    @node-drag-leave="handleDragLeave"
    @node-drag-over="handleDragOver"
    @node-drag-end="handleDragEnd"
    @node-drop="handleDrop"
  /> -->
</template>
